package com.tul.vapp.servicecenter.entity;

/**
 * 配置项节点
 * 
 * @author wwxiang
 * @since 2017/12/27.
 */
public class Item {

	/**
	 * 主键
	 */
	private Integer id;
	/**
	 * 应用ID
	 */
	private String appId;

	/**
	 * 命名空间
	 */
	private String namespace;

	/**
	 * 配置键
	 */
	private String keyName;

	/**
	 * 配置值
	 */
	private String value;

	/**
	 * 是否需要重启
	 */
	private int needRestart;

	/**
	 * 备注
	 */
	private String comment;

	/**
	 * 创建时间
	 */
	private String createTime;

	/**
	 * 修改时间
	 */
	private String updateTime;

	/**
	 * 0:已发布 1新增 2 修改 3删除
	 */
	private int status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getKeyName() {
		return keyName;
	}

	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public int getNeedRestart() {
		return needRestart;
	}

	public void setNeedRestart(int needRestart) {
		this.needRestart = needRestart;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return keyName + "=" + value;
	}
}
